/*
 * 2008 - 2009 Copyright (C) Ciprian Docan <docan@cac.rutgers.edu>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 */

#include <stdio.h>


void f5()
{
        pstrace();
}

void f4()
{
        f5();
}

void f3()
{
        f4();
}

void f2()
{
        f3();
}


void f1()
{
        f2();
}


int fact( int n )
{
        if( n == 1 ) {
                pstrace();
                return 1;
        }
        else return n*fact(n-1);
}


int main( void )
{

        pstrace_init();

        f1();

        /* pstrace_resolve_symbol( &main ); */

        fact( 10 );

        return 0;
}
